let _that;

function checkRecord(that) {
  _that = that;
  wx.authorize({
    scope: 'scope.record',
    success(res) {
      console.log('授权成功')
      _that.setData({
        recordStatus : true
      })
    },
    fail() {
       console.log('授权失败')
       _that.setData({
         recordStatus : true
       })
     },
    complete(){ 
      that.setData({
        recordAuthMethod : 1
      })
    }
  })
}

 
module.exports = {
  checkRecord: checkRecord, 
};


